import * as path from './paths';
import * as page from 'page';
import Setting from 'page/setting';
import HeaderLayout from 'layout/HeaderLayout';

export const routes = [
  {
    path: '/',
    layout: {
      component: HeaderLayout,
    },
    children: [
      {
        key: path.APP_HOME,
        path: path.APP_HOME,
        component: page.Home,
      },
      {
        key: path.APP_SETTING,
        path: path.APP_SETTING,
        component: Setting,
      },
      {
        key: path.APP_MAP,
        path: path.APP_MAP,
        component: page.Map,
      },
      {
        key: path.APP_PARK_DETAILS,
        path: path.APP_PARK_DETAILS,
        component: page.ParkDetails,
      },
    ],
  },
];
